package com.yanyilu.basing.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yanyilu.basing.entity.User;
import com.yanyilu.basing.entity.dto.UserDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Sxx
 * @since 2020-10-26
 */
public interface UserMapper extends BaseMapper<User> {

    User selectByOpenid(@Param("openid") String openid);

    List<User> selectByAdminList(@Param("userName")String userName, @Param("contactDetails")String contactDetails);

    Integer countPeople();

    List<User> selectByStatus();
}
